package des.yordan.mihaylov;

/**
 * @author Yordan Mihaylov
 * @version 2011/06/07
 */

public abstract class Counter {

	protected double sumPowerOne = 0.;
	protected double sumPowerTwo = 0.;
	protected double min = Double.MAX_VALUE;
	protected double max = Double.MIN_VALUE;

	protected long count = 0;

	public abstract void count(double value);

	public abstract double getMean();

	public double getSumPowerOne() {
		return sumPowerOne;
	}

	public double getSumPowerTwo() {
		return sumPowerTwo;
	}

	public double getMin() {
		return min;
	}

	public double getMax() {
		return max;
	}

	public long getCount() {
		return count;
	}

	public void setSumPowerOne(double sumPowerOne) {
		this.sumPowerOne = sumPowerOne;
	}

	public void setSumPowerTwo(double sumPowerTwo) {
		this.sumPowerTwo = sumPowerTwo;
	}

	public void setMin(double min) {
		this.min = min;
	}

	public void setMax(double max) {
		this.max = max;
	}

	public void setCount(long count) {
		this.count = count;
	}

}
